package com.action;

import com.dao.ITabDepositscheduleDao;
import com.dao.ITabPerformancerewardandpunishmentDao;
import com.opensymphony.xwork2.ModelDriven;
import com.po.TabDepositschedule;
import com.po.TabPerformancerewardandpunishment;

public class TabPerformancerewardandpunishmentAction extends BaseAction implements ModelDriven<TabPerformancerewardandpunishment>{

	TabPerformancerewardandpunishment form = new TabPerformancerewardandpunishment();
	public TabPerformancerewardandpunishment getModel(){
		return form;
	}
	private ITabPerformancerewardandpunishmentDao tabPerformancerewardandpunishmentDao;
	public void setTabPerformancerewardandpunishmentDao(ITabPerformancerewardandpunishmentDao tabPerformancerewardandpunishmentDao){
		this.tabPerformancerewardandpunishmentDao = tabPerformancerewardandpunishmentDao;
	}

	public String findByList(){
		form.setPager_count(tabPerformancerewardandpunishmentDao.findByCount(form));
		form.setTabpraplist(tabPerformancerewardandpunishmentDao.findByList(form));
		return SUCCESS;
	}

	public String deleteObject(){
		tabPerformancerewardandpunishmentDao.deleteObejct(form);
		findByList();
		return SUCCESS;
	}

	public String updateObject(){
		tabPerformancerewardandpunishmentDao.updateObject(form);
		return "update";
	}

	

}
